package com.mallcai.bigdata.ladon.service.report.impl;

import lombok.Data;

import java.io.Serializable;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-09-06 17:08
 */
@Data
public class ReportStatisticDTO implements Serializable {

    private static final long serialVersionUID = -6548836231088481326L;

    private Integer errorCall;

    public ReportStatisticDTO() {
        this.errorCall = 0;
    }

    public ReportStatisticDTO incErrorCall(){
        ReportStatisticDTO reportStatisticDTO = new ReportStatisticDTO();
        reportStatisticDTO.setErrorCall(this.errorCall + 1);
        return reportStatisticDTO;
    }

}
